package com.ruoyi.onway.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 在途油信息对象 report_onway
 * 
 * @author ruoyi
 * @date 2024-10-12
 */
public class ReportOnway extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** $column.columnComment */
//    private Integer extra1;

    /** $column.columnComment */
    private String extra2;

    /** $column.columnComment */
    private String extra3;

    /** $column.columnComment */
    private String extra4;

    /** 采购计划id */
    @Excel(name = "采购计划")
    private String plan;

    private Long planId;

    /** 炼厂id */
    @Excel(name = "炼厂")
    private String refinery;

    private Long refineryId;

    /** 已发量 */
//    @Excel(name = "已发量")
    private BigDecimal send;

    /** 已发车数量 */
    @Excel(name = "已发车数量")
    private Long sendCarCount;

    /** 已发量 */
    @Excel(name = "已发量")
    private BigDecimal sendWeight;

    /** 出发时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出发时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 预计到达时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预计到达时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date arriveTime;

    /** 到库车数量 */
//    @Excel(name = "到库车数量")
    private Integer arriveCarCount;

    /** 到库重量 */
//    @Excel(name = "到库重量")
    private BigDecimal arriveWeight;

    /** 异常情况 */
    @Excel(name = "异常情况")
    private String error;

    /** 上报用户 */
//    @Excel(name = "上报用户")
    private Long reportUserId;

    @Excel(name = "状态", readConverterExp = "1=在途,2=到站,3=收油")
    private Integer extra1;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setExtra1(Integer extra1)
    {
        this.extra1 = extra1;
    }

    public Integer getExtra1()
    {
        return extra1;
    }
    public void setExtra2(String extra2) 
    {
        this.extra2 = extra2;
    }

    public String getExtra2() 
    {
        return extra2;
    }
    public void setExtra3(String extra3) 
    {
        this.extra3 = extra3;
    }

    public String getExtra3() 
    {
        return extra3;
    }
    public void setExtra4(String extra4) 
    {
        this.extra4 = extra4;
    }

    public String getExtra4() 
    {
        return extra4;
    }
    public void setPlanId(Long planId) 
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }
    public void setRefineryId(Long refineryId) 
    {
        this.refineryId = refineryId;
    }

    public Long getRefineryId() 
    {
        return refineryId;
    }
    public void setSend(BigDecimal send) 
    {
        this.send = send;
    }

    public BigDecimal getSend() 
    {
        return send;
    }
    public void setSendCarCount(Long sendCarCount) 
    {
        this.sendCarCount = sendCarCount;
    }

    public Long getSendCarCount() 
    {
        return sendCarCount;
    }
    public void setSendWeight(BigDecimal sendWeight) 
    {
        this.sendWeight = sendWeight;
    }

    public BigDecimal getSendWeight() 
    {
        return sendWeight;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setArriveTime(Date arriveTime) 
    {
        this.arriveTime = arriveTime;
    }

    public Date getArriveTime() 
    {
        return arriveTime;
    }
    public void setArriveCarCount(Integer arriveCarCount) 
    {
        this.arriveCarCount = arriveCarCount;
    }

    public Integer getArriveCarCount() 
    {
        return arriveCarCount;
    }
    public void setArriveWeight(BigDecimal arriveWeight) 
    {
        this.arriveWeight = arriveWeight;
    }

    public BigDecimal getArriveWeight() 
    {
        return arriveWeight;
    }
    public void setError(String error) 
    {
        this.error = error;
    }

    public String getError() 
    {
        return error;
    }
    public void setReportUserId(Long reportUserId) 
    {
        this.reportUserId = reportUserId;
    }

    public Long getReportUserId() 
    {
        return reportUserId;
    }

    public String getPlan() {
        return plan;
    }

    public void setPlan(String plan) {
        this.plan = plan;
    }

    public String getRefinery() {
        return refinery;
    }

    public void setRefinery(String refinery) {
        this.refinery = refinery;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("extra1", getExtra1())
            .append("extra2", getExtra2())
            .append("extra3", getExtra3())
            .append("extra4", getExtra4())
            .append("planId", getPlanId())
            .append("refineryId", getRefineryId())
            .append("send", getSend())
            .append("sendCarCount", getSendCarCount())
            .append("sendWeight", getSendWeight())
            .append("startTime", getStartTime())
            .append("arriveTime", getArriveTime())
            .append("arriveCarCount", getArriveCarCount())
            .append("arriveWeight", getArriveWeight())
            .append("error", getError())
            .append("remark", getRemark())
            .append("reportUserId", getReportUserId())
            .toString();
    }
}
